package com.sduept.component.message.model;

import com.sduept.core.entity.IdentifiedObject;

import javax.persistence.*;
import java.util.Date;

/**
 * cim模型更新消息
 */
@Entity
@Table(name = "t_msg_cim_update")
public class CimEquipmentUpdateMessage extends IdentifiedObject {

	/**
	 *
	 */
	private static final long serialVersionUID = 2740992220968267314L;

	/**
	 * 消息描述
	 */
	@Lob       //Lob类型是根据持久性字段或属性的类型推断的，除了字符串和基于字符的类型以外，默认为Blob。     String 类的默认值 为 longtext, byte[] 默认值 为 longblob
	@Basic(fetch= FetchType.LAZY)
	private String description;
	/**
	 * 消息内容
	 */
	@Lob
	@Basic(fetch= FetchType.LAZY)
	private String content;
	/**
	 * 操作（0：新增，1：更新，2：删除）
	 */
	private Integer operation;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 消息状态（0：未确认，1：已确认）
	 */
	private int status;
	/**
	 * 确认人
	 */
	private String checker;
	/**
	 * 确认时间
	 */
	private Date checkTime;
	/**
	 * 是否需要告警（0：否，1：是）
	 */
	private int isAlarm;

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getOperation() {
		return operation;
	}

	public void setOperation(Integer operation) {
		this.operation = operation;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getChecker() {
		return checker;
	}

	public void setChecker(String checker) {
		this.checker = checker;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public int getIsAlarm() {
		return isAlarm;
	}

	public void setIsAlarm(int isAlarm) {
		this.isAlarm = isAlarm;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
